//
//  InfoCell.m
//  UIScrollView的快速使用
//
//  Created by hongfei tam on 2019/3/4.
//  Copyright © 2019 YQ05. All rights reserved.
//

#import "InfoCell.h"
#import "MKConstant.h"

@interface InfoCell(){
    // UIView *content;
}
@property (weak, nonatomic) IBOutlet UIImageView *titleimg;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *emailLabel;
@property (weak, nonatomic) IBOutlet UIView *BGview;

@end

@implementation InfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    // Initialization code
//    content = [[UIView alloc]initWithFrame:CGRectMake( 0, 0, UISCREEN_WIDTH - 60, 360)];
    _BGview.backgroundColor = [UIColor whiteColor];
    _BGview.layer.shadowColor = [UIColor grayColor].CGColor;
    _BGview.layer.shadowOffset = CGSizeMake(3, 3);
    _BGview.layer.shadowOpacity = 0.8;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
   // [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+(instancetype)createCellWithTableView:(UITableView*)tableView{
    static NSString *ID = @"InfoCell";
    InfoCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        // xib加载cell
        cell = [[[NSBundle mainBundle]loadNibNamed:@"InfoCell" owner:nil options:nil]lastObject];
    }
    return cell;
}
-(void)loadData:(NSString*)image label:(NSString*)label andprotitledic:(NSMutableDictionary*)protitledic{
    self.titleimg.image = [UIImage imageNamed:image];
    //self.protitle.text = label;
    
    self.phoneLabel.text = [protitledic valueForKey:@"phoneLabel"];
    self.emailLabel.text = [protitledic valueForKey:@"emailLabel"];

}

@end
